<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    
    $('input[type="text"]').blur(function(){
      var txt = $(this).val();
      alert(txt);
    });
  });
</script>
<h4>Write something in input and put cursor outside</h4>
<p><input type="text"></p>
<p><input type="text"></p>
<p><input type="text"></p>
<p><input type="text"></p>
<p><input type="text"></p>
<p><input type="text"></p>
<p><input type="text"></p>
